#include "Package.h"

int Package::index = 0;

Package::Package()
{

}

Package::Package(string pid, string pname, string pduration)
{
	pack_id = pid;
	pack_name = pname;
	pack_duration = pduration;
}

string Package::getPackId()
{
	return pack_id;
}

string Package::getPackName()
{

	return pack_name;
}

string Package::getPackDuration()
{
	return pack_duration;
}

int Package::getIndex()
{
	return Package::index;
}

void Package::setPackId(int pid)
{
	string res;
	ostringstream convert;
	convert << pid;
	pack_id = convert.str();
}

void Package::setPackName(string pname)
{
	pack_name = pname;
}

void Package::setPackDuration(string pduration)
{
	pack_duration = pduration;
}